﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeBehind="tree.aspx.cs" Inherits="Icst.Leaflike.Web.tree" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
<table cellpadding="0" cellspacing="0" style="margin-top:15px">
    <tr>
        <td valign="top" style="width:100px">
            <div class="sw_menu"">
                <h2>目录</h2>
                <ul>
                    <li><a href="#jianjie"><strong>简介</strong></a></li>
                    <li><a href="#guishu"><strong>归属</strong></a></li>
                    <li><a href="#gongyong"><strong>功用</strong></a></li>
                    <li><a href="#shengtai"><strong>生态特征</strong></a></li>
                    <li><a href="#zhongzhi"><strong>种植养护</strong></a></li>
                    <li><a href="#renwen"><strong>人文价值</strong></a></li>
                    <li><a href="#lianjie"><strong>相关链接</strong></a></li>
                </ul>
             </div>
        </td>
        <td valign="top">
        <%
            if (_result != null){%>
            <div id="guishu">
               <h4 class="sectiontitle">简介</h4>
               <table cellspacing="0" cellpadding="2">
                    <tr>
                        <td class="thumbnail" valign="top">
                            <a href='<%="trees/"+_result.imagelink %>' mon="a=5&pn=3" target="_blank"><img src='<%="thumbnail.htm?w=120&h=90&thumbnail=true&name="+_result.imagelink %>' border="1" /></a>
                        </td>
                        <td class="text" valign="top">
                            <font size="-1"><%=this.Server.HtmlEncode(_result.description)%></font>
                        </td>
                    </tr>
                </table>
            </div>
            
            <div id="guishu">
                <h4 class="sectiontitle">归属</h4>
                <div>
                    <table cellpadding="0" cellspacing="0">
                       <tr>
                            <td style="font-weight:bold; width:50px; vertical-align:top">属：</td>
                            <td style="width:150px; vertical-align:top"><%= _result.genus_id%></td>
                            <td style="font-weight:bold; width:50px; vertical-align:top">科：</td>
                            <td style="width:150px; vertical-align:top"><%= _result.family_id%></td>
                            <td style="font-weight:bold; width:50px; vertical-align:top">纲：</td>
                            <td style="width:150px; vertical-align:top"><%= _result.class_id%></td>
                            <td style="font-weight:bold; width:50px; vertical-align:top">门：</td>
                            <td style="width:200px; vertical-align:top"><%= _result.phylum_id%></td>
                        </tr>
                        <tr style="height:10px" />
                        <tr>
                            <td style="font-weight:bold; width:100px; vertical-align:top">同属物：</td>
                            <td style="width:200px; vertical-align:top"><%= string.IsNullOrEmpty(_result.sibling_tree_name) ? "无" : _result.sibling_tree_name%></td>
                            <td style="font-weight:bold; width:100px; vertical-align:top">共生植物：</td>
                            <td style="width:200px; vertical-align:top"><%= string.IsNullOrEmpty(_result.symbiosis) ? "无" : _result.symbiosis%></td>
                        </tr>
                    </table>
                </div>
            </div>
            
            <div id="gongyong">
                <h4 class="sectiontitle">功用</h4>
                <div>
                    <p><strong>[园林用途]</strong><br /><%=_result.use_garden%></p>
                    <p><strong>[药用价值]</strong><br /><%=_result.use_med%></p>
                    <p><strong>[经济用途]</strong><br /><%=_result.use_eco%></p>
                    <p><strong>[改善空气]</strong><br /><%=_result.use_air%></p>
                    <p><strong>[其他]</strong><br /><%=_result.use_other%></p>
                </div>
            </div>
            
            <div id="shengtai">
                <h4 class="sectiontitle">生态特征</h4>
                <div>
                <p><strong>[生长过程]</strong><br /><%=_result.eco_lifecycle%></p>
                <p><strong>[生长环境]</strong><br /><%=_result.eco_environment%></p>
                <p><strong>[生长习性]</strong><br /><%=_result.eco_habit%></p>
                </div>
            </div>
            
            <div id="zhongzhi">
                <h4 class="sectiontitle">种植养护</h4>
                <div>
                <p><strong>[繁殖方法]</strong><br /><%=_result.plant_propagate%></p>
	            <p><strong>[浇水]</strong><br /><%=_result.plant_water%></p>
	             <p><strong>[施肥]</strong><br /><%=_result.plant_fertilize%></p>
	             <p><strong>[常见病防治]</strong><br /><%=_result.plant_illness_pro%></p>
	             <p><strong>[病虫害防治]</strong><br /><%=_result.plant_insect_pro%></p>
                </div>
            </div>
            
            <div id="renwen">
                <h4 class="sectiontitle">人文价值</h4>
                <div>
                <p><strong>[象征意义]</strong><br /><%=_result.culture_symbol%></p>
	            <p><strong>[神话传说]</strong><br /><%=_result.culture_legend%></p>
	            <p><strong>[重要典故]</strong><br /><%=_result.culture_classic%></p>
                </div>
            </div>
            
            <div id="lianjie">
                <h4 class="sectiontitle">相关链接</h4>
                <table cellspacing="3">
                <%if (_links != null)
                  {
                      foreach (var link in _links)
                      { %>
                      <tr>
                      <td style="width:100px" valign="top"><strong><%=link.Key %></strong></td>
                      <td>
                        <table>
                        <%foreach (var l in link.Value)
                          { %>
                            <tr><td><a href="<%=l%>" target="_blank"><%=l%></a></td></tr>
                            <%} %>
                        </table>
                      </td>
                </tr>
	            <%}
                  }%>
                </table>
            </div>
        <% }%>
</td></tr></table>
</asp:Content>
